package algorithmCompetition;

public class ALGO_122 {

    public static void main(String[] args) {
        int n = function(3,2,0);
        System.out.println(n);
    }

    //m个换鞋  n个要鞋
    public static int function(int m,int n,int k){
        if(k<0){
            return 0;
        }
        if(m==0 || n==0){
            return 1;
        }
        return function(m-1,n,k+1) + function(m,n-1,k-1);
    }
}
